-
-
Notifications
You must be signed in to change notification settings - Fork 57
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add connecting to database by connectionString given as an argument to cli #120
Conversation
I think your intuition is right, the main.go file need to be keep small, can you please move the command args processing to another file?. Also, can you please expand the "usage" section in the readme to include this? Thank you for the PR. |
I am facing an issue where only sqlite databases work with passing the argument. Postgresql connects without any problem but can't open unfold the left menu for listing the tables. |
I have tested MySQL, Postgres and SQLite and it works fine. Is there anything else you want to add or are we ready for merge? |
I don't have anything more. I'd be happy to see it merged :) |
Please fix linter errors. |
Thank you @ccoVeille for the good advices. I'm learning too, so thanks for taking the time to keep an eye on the project. |
Thanks for the amazing tool!
I'd like to see a feature like this get merged as I find it easier to just pass the path to the database I want to open as an argument, so I made this request. This implementation works but perhaps is doing a bit too much in the main.go file. I first tried doing most of this connection initialization inside Pages.go but the init() functions run before main.go's main() function.
I'd love to hear your feedback on this!